import request from '@/utils/request'

// 查询火灾案件列表
export function listCase(query) {
  return request({
    url: '/fire/case/list',
    method: 'get',
    params: query
  })
}

// 查询火灾案件详细
export function getCase(uId) {
  return request({
    url: '/fire/case/' + uId,
    method: 'get'
  })
}

// 新增火灾案件
export function addCase(data) {
  return request({
    url: '/fire/case',
    method: 'post',
    data: data
  })
}

// 修改火灾案件
export function updateCase(data) {
  return request({
    url: '/fire/case',
    method: 'put',
    data: data
  })
}

// 删除火灾案件
export function delCase(uId) {
  return request({
    url: '/fire/case/' + uId,
    method: 'delete'
  })
}
